package com.m.crm.service;

import com.m.crm.entity.Account;

import java.util.Date;
import java.util.List;

/**
 * Created by yugoh on 2017/5/24.
 */
public interface AccountService {
    /**
     * 注册一个客户
     *
     * @param account
     * @return
     */
    Account register(Account account, String securityCode);

    /**
     * 获取客户列表
     *
     * @param account
     * @param startTime
     * @param endTime
     * @param offset
     * @param limit
     * @return
     */
    List<Account> listAccount(Account account, Date startTime, Date endTime, Integer offset, Integer limit);

    /**
     * 根据唯一标记获取客户
     *
     * @param accountId
     * @param email
     * @param idCard
     * @return
     */
    Account getAccountByTag(Integer accountId, String email, String idCard);
}
